* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
    scroll-behavior: smooth;
    font-family: 'Space Grotesk', sans-serif;
}

:root {
    --bg: #020214;
    --bg2: #06062a;
    --bg3: #0a0a1f;
    --accent: #00f2fe;
    --accent2: #4facfe;
    --white: #ffffff;
    --gray: rgba(255,255,255,0.65);
    --border: rgba(255,255,255,0.08);
}

body {
    min-height: 100vh;
    background-color: var(--bg);
    color: var(--white);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; background: var(--bg); }
::-webkit-scrollbar-thumb { background: #333366; border-radius: 3px; }

/* ===== GRADIENT TEXT ===== */
span {
    background: linear-gradient(90deg, #00f2fe, #4facfe);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

/* ===== NAVBAR ===== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.4em 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(16px);
    background: rgba(2, 2, 20, 0.85);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.logo {
    font-family: 'Syne', sans-serif;
    font-size: 1.8em;
    font-weight: 800;
    color: white;
}

.links {
    display: flex;
    align-items: center;
    gap: 2.5em;
}

.links a {
    color: var(--gray);
    font-size: 0.95em;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: color 0.2s ease;
}

.links a:hover { color: white; }

#menu {
    color: white;
    font-size: 2.5em;
    display: none;
    cursor: pointer;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.6em 1.4em;
    border-radius: 8px;
    font-size: 0.95em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1.5px solid var(--border);
    color: white;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
    background: linear-gradient(135deg, #00b4d8, #0077b6);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 20px rgba(0, 180, 216, 0.25);
}

.btn-primary:hover {
    box-shadow: 0 6px 28px rgba(0, 180, 216, 0.4);
}

.btn-outline {
    background: transparent;
    border-color: rgba(255,255,255,0.2);
    color: white;
}

.btn-outline:hover { background: rgba(255,255,255,0.06); }

/* ===== SECTION TAGS ===== */
.section-tag {
    display: inline-block;
    padding: 0.35em 1em;
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.25);
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #00f2fe;
    margin-bottom: 1rem;
}

.section-tag.centered { display: block; text-align: center; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.4em 1em;
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.2);
    border-radius: 20px;
    font-size: 0.82em;
    color: #00f2fe;
    margin-bottom: 1.5rem;
}

.badge::before {
    content: '';
    width: 7px;
    height: 7px;
    background: #00f2fe;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ===== HOME ===== */
#home {
    min-height: 100vh;
    padding: 8em 8% 4em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4em;
}

.home-content {
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#home h1 {
    font-family: 'Syne', sans-serif;
    font-size: 4.2em;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

#home h3 {
    font-size: 1.25em;
    font-weight: 400;
    color: var(--gray);
    margin-bottom: 1.2rem;
}

#home > .home-content > p {
    font-size: 1.05em;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 480px;
}

.home-btns {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.home-stats {
    display: flex;
    gap: 2.5em;
    border-top: 1px solid var(--border);
    padding-top: 2rem;
}

.stat h4 {
    font-family: 'Syne', sans-serif;
    font-size: 2em;
    font-weight: 700;
    background: linear-gradient(90deg, #00f2fe, #4facfe);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.stat p {
    font-size: 0.82em;
    color: var(--gray);
    margin-top: 0.2em;
}

.home-img {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.img-wrapper {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 2px solid rgba(0, 242, 254, 0.2);
    padding: 6px;
    background: rgba(0, 242, 254, 0.04);
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* ===== ABOUT ===== */
#about {
    background: var(--bg2);
    padding: 7em 8%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6em;
}

.about-img img {
    width: 280px;
    height: 340px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.about-box {
    max-width: 560px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-box h1 {
    font-family: 'Syne', sans-serif;
    font-size: 3.2em;
    font-weight: 800;
}

.about-box > p {
    color: var(--gray);
    font-size: 1.05em;
    line-height: 1.8;
}

.about-box h2 {
    font-family: 'Syne', sans-serif;
    font-size: 1.6em;
    margin-top: 0.5rem;
}

.skills ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8em 2em;
    margin-top: 0.5rem;
}

.skills ul li span {
    display: flex;
    align-items: center;
    gap: 0.6em;
    font-size: 1em;
    color: rgba(255,255,255,0.8);
    transition: transform 0.2s ease;
    cursor: default;
}

.skills ul li span:hover { transform: translateX(6px); color: white; }

.skills ul li i {
    font-size: 0.7em;
    color: #00f2fe;
}

/* ===== PROJECTS ===== */
#services {
    background: var(--bg3);
    padding: 6em 8%;
    text-align: center;
}

.header {
    font-family: 'Syne', sans-serif;
    font-size: 3em;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.section-sub {
    color: var(--gray);
    font-size: 1.05em;
    margin-bottom: 3rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
    text-align: left;
}

.box {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.box:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 242, 254, 0.25);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.box.featured {
    border-color: rgba(0, 242, 254, 0.2);
    background: rgba(0, 242, 254, 0.03);
    grid-column: span 2;
}

.box.in-progress {
    border-color: rgba(255, 183, 0, 0.2);
    background: rgba(255, 183, 0, 0.02);
}

.box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.project-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00f2fe;
    font-size: 1.1em;
}

.in-progress .project-icon {
    background: rgba(255, 183, 0, 0.1);
    border-color: rgba(255, 183, 0, 0.2);
    color: #ffb700;
}

.tech-badge {
    font-size: 0.72em;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 0.3em 0.8em;
    border-radius: 6px;
    background: rgba(79, 172, 254, 0.1);
    color: #4facfe;
    border: 1px solid rgba(79, 172, 254, 0.2);
    -webkit-text-fill-color: #4facfe;
}

.progress-badge {
    background: rgba(255, 183, 0, 0.1);
    color: #ffb700;
    border-color: rgba(255, 183, 0, 0.3);
    -webkit-text-fill-color: #ffb700;
}

.completed-badge {
    background: rgba(0, 176, 155, 0.1);
    color: #00b09b;
    border-color: rgba(0, 176, 155, 0.3);
    -webkit-text-fill-color: #00b09b;
}

.box h2 {
    font-family: 'Syne', sans-serif;
    font-size: 1.2em;
    font-weight: 700;
    color: white;
}

.box p {
    font-size: 0.9em;
    color: var(--gray);
    line-height: 1.7;
    flex-grow: 1;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    margin-top: 0.5rem;
}

.tech-stack span {
    font-size: 0.75em;
    padding: 0.25em 0.7em;
    border-radius: 5px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: rgba(255,255,255,0.7);
    -webkit-text-fill-color: rgba(255,255,255,0.7);
}

.box-links {
    display: flex;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    font-size: 0.85em;
    font-weight: 500;
    color: #4facfe;
    padding: 0.4em 1em;
    border-radius: 8px;
    border: 1px solid rgba(79, 172, 254, 0.25);
    background: rgba(79, 172, 254, 0.05);
    transition: all 0.2s ease;
}

.link-btn:hover {
    background: rgba(79, 172, 254, 0.12);
    border-color: rgba(79, 172, 254, 0.4);
    transform: translateY(-2px);
}

/* ===== CONTACT ===== */
#contact {
    background: var(--bg2);
    padding: 6em 8%;
}

#contact .header { margin-bottom: 0.5rem; }

form {
    max-width: 560px;
    margin: 2rem auto 0;
}

.input-box {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.4rem;
}

.input-box > span {
    font-size: 0.9em;
    font-weight: 600;
    color: rgba(255,255,255,0.75);
    margin-bottom: 0.5rem;
    -webkit-text-fill-color: rgba(255,255,255,0.75);
    background: none;
}

.input-box input,
.input-box textarea {
    padding: 0.9rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
    font-size: 0.95rem;
    font-family: 'Space Grotesk', sans-serif;
    background: rgba(255,255,255,0.04);
    color: white;
    transition: border-color 0.2s ease;
    resize: vertical;
}

.input-box input:focus,
.input-box textarea:focus {
    border-color: rgba(0, 242, 254, 0.4);
    background: rgba(0, 242, 254, 0.03);
}

.input-box input::placeholder,
.input-box textarea::placeholder { color: rgba(255,255,255,0.3); }

.submit-btn {
    width: 100%;
    justify-content: center;
    padding: 0.85em 1.5em;
    font-size: 1em;
    border-radius: 10px;
}

/* ===== FOOTER ===== */
footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 4em 8% 2em;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4em;
    margin-bottom: 3em;
}

.footer-brand p {
    color: var(--gray);
    font-size: 0.9em;
    line-height: 1.7;
    margin: 0.8em 0 1.5em;
    max-width: 260px;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-size: 1.1em;
    transition: all 0.2s ease;
}

.social-icons a:hover {
    background: rgba(0, 242, 254, 0.1);
    border-color: rgba(0, 242, 254, 0.3);
    color: #00f2fe;
    transform: translateY(-3px);
}

.footer-info h4,
.footer-links h4 {
    font-family: 'Syne', sans-serif;
    font-size: 1em;
    font-weight: 700;
    color: white;
    margin-bottom: 1.2em;
}

.col-box {
    display: flex;
    align-items: center;
    gap: 0.8em;
    margin-bottom: 0.8em;
}

.col-box i { color: #00f2fe; font-size: 0.95em; }
.col-box span {
    font-size: 0.88em;
    color: var(--gray);
    -webkit-text-fill-color: rgba(255,255,255,0.65);
    background: none;
}

.footer-links {
    display: flex;
    flex-direction: column;
}

.footer-links a {
    color: var(--gray);
    font-size: 0.9em;
    margin-bottom: 0.8em;
    transition: color 0.2s ease;
}

.footer-links a:hover { color: white; }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1.5em;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85em;
    color: rgba(255,255,255,0.3);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .services-container { grid-template-columns: repeat(2, 1fr); }
    .box.featured { grid-column: span 2; }
    #home { padding-top: 7em; }
    .img-wrapper { width: 260px; height: 260px; }
}

@media (max-width: 768px) {
    nav { padding: 1.2em 6%; }
    #menu { display: block; }
    .links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1.5em 2em;
        flex-direction: column;
        background: rgba(2, 2, 20, 0.97);
        border-bottom: 1px solid var(--border);
        display: none;
        gap: 1.5em;
        text-align: center;
    }
    .links.active { display: flex; }
    .links a { font-size: 1.2em; }
    nav .btn { display: none; }

    #home {
        flex-direction: column-reverse;
        padding: 8em 6% 4em;
        text-align: center;
        gap: 2em;
    }
    .home-content { align-items: center; }
    #home h1 { font-size: 2.8em; }
    .home-btns { justify-content: center; }
    .home-stats { justify-content: center; }
    .img-wrapper { width: 200px; height: 200px; }

    #about {
        flex-direction: column;
        padding: 5em 6%;
        text-align: center;
        gap: 3em;
    }
    .about-img img { width: 200px; height: 240px; }
    .about-box { align-items: center; }
    .skills ul { justify-items: start; }

    #services, #contact { padding: 5em 6%; }

    .services-container { grid-template-columns: 1fr; }
    .box.featured { grid-column: span 1; }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5em;
    }
    .footer-brand p { max-width: 100%; }
}

@media (max-width: 480px) {
    #home h1 { font-size: 2.2em; }
    .header { font-size: 2.2em; }
    .home-stats { gap: 1.5em; }
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== ACTIVE NAV LINK ===== */
.links a.active-link { color: white; }
